package cn.yuhh.serviec;

import cn.yuhh.entity.Blog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface IBlogService {


    Blog getOne(Long id);

    Blog save(Blog blog);

    void deleteById(Long id);

    List<Blog> findByTag(Long tagId);

    List<Blog> findByType(Long typeId);

    Page<Blog> findAll(Pageable pageable);

    Blog updataBlog(Long id, Blog blog);
}
